package com.candy.databasedocuments.service;

import com.candy.databasedocuments.entity.DatabaseConfig;
import com.candy.databasedocuments.entity.Table;

import java.sql.Connection;
import java.util.List;

/**
 * @author suYanLong
 * @version 1.0
 * @date 2023/7/5 14:27
 * @Description 数据库链接接口
 */
public interface DatabaseConnect {

    void getConnectInfo(DatabaseConfig databaseConfig);

    Connection connectDatabase(DatabaseConfig databaseConfig) throws Exception;

    List<Table> getTableBaseInfoList(Connection connection);

}
